home *** CD-ROM | disk | FTP | other *** search
- package Forms
- {
- import flash.events.MouseEvent;
- import flash.text.TextField;
-
- [Embed(source="/_assets/assets.swf", symbol="Forms.ProfileDeleteForm")]
- public class ProfileDeleteForm extends CluelessBaseForm
- {
-
-
- public var _bDelete:ButtonRound;
-
- public var _bClose:ButtonRound;
-
- internal var _sProfileName:String = "";
-
- public var _tfText:TextField;
-
- public function ProfileDeleteForm()
- {
- _sProfileName = "";
- super();
- setBackButton(_bClose);
- installMouseOverSound(_bClose);
- installMouseOverSound(_bDelete);
- _bDelete.addEventListener(MouseEvent.CLICK,onDelete,false,0,true);
- }
-
- public function init(param1:String) : void
- {
- _sProfileName = param1;
- _tfText.text = "Delete profile \"" + _sProfileName + "\"?";
- }
-
- protected function onDelete(param1:MouseEvent) : void
- {
- Storage.getInstance().deleteProfile(_sProfileName);
- onBack(new MouseEvent(""));
- }
- }
- }
-